<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="/resource/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="/resource/js/bootstrap.js"></script>
<script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>
</head>
<body>
<form action="" method="post">
<div class="row" style="margin-top: 25px">
	<div class="col-md-3">
		<button type="button" class="btn btn-secondary" onclick="addBrand()">添加品牌</button>
	</div>
	<div class="col-md-3">
		<button type="button" class="btn btn-success" onclick="addGoods()">添加商品</button>
	</div>
	<div class="col-md-3">
		<button type="button" class="btn btn-danger" onclick="Goods()">购买商品</button>
	</div>
	<div class="col-md-3">
		<button type="button" class="btn btn-warning"onclick="selectShopping()">购物车</button>
	</div>
</div>
	<!-- 追加 -->
	<div id="d" style="margin-top: 25px"></div>
</form>
</body>
<script type="text/javascript">
	//添加品牌
	function addBrand(){
		$("#d").load("/views/addBrand.jsp");
	}
	//添加商品
	function addGoods(){
		$("#d").load("/views/addGoods.jsp");
	}
	//购买商品
	function Goods(){
		//点击查询后台
		$("#d").load("Goods");
	}
	//显示购物车
	function selectShopping(){
		//点击查询后台
		$("#d").load("selectShopping");
	}
</script>
</html>